package com.eightbears.beboy.ui.user.fragment;

import android.support.v4.app.Fragment;

/**
 * 订单Fragment工厂
 */
public class OrderFragmentFactory {

    public static Fragment createFragment(int position) {
        Fragment fragment = null;

        switch (position) {
            case 0:
                fragment = new AllOrderFragment();
                break;
            case 1:
                fragment = new PostOrderFragment();
                break;
            case 2:
                fragment = new SetMealOrderFragment();
                break;
            case 3:
                fragment = new CommodityOrderFragment();
                break;
        }

        return fragment;
    }
}